package com.yxw.live_vod_boot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yxw.live_vod_boot.entity.YxVodProductClickEntity;
import com.yxw.live_vod_facade.vo.VodProductClickVo;
import com.yxw.live_vod_facade.vo.VodSalesRevenueVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 点播视频商品点击记录
 * @author liuxin
 * @date 2023-12-18
 */
@Repository
public interface VodProductClickMapper extends BaseMapper<YxVodProductClickEntity> {

    /**
     * 批量保存
     * @param clickVoList
     */
    void addProductClickByBatch(@Param("list") List<VodProductClickVo> clickVoList);

    /**
     * 查询卡片点击信息
     * @param productId
     * @param videoId
     * @return
     */
    VodSalesRevenueVo getClickCntByProductId(@Param("productId")Long productId,@Param("videoId")Long videoId);
}
